home *** CD-ROM | disk | FTP | other *** search
- 118
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- FileDate
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baFileDate returns the date of a file as a string.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baFileDate( FileName , DateFormat , TimeFormat )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String, String, String
- --- RECORDSEPARATOR ---
- FileName is the file to get the date of.
- --- RECORDSEPARATOR ---
- DateFormat is the desired format of the date,
- --- RECORDSEPARATOR ---
- TimeFormat is the desired format of the time.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String.
- --- RECORDSEPARATOR ---
- Returns the date of the file, or an empty string if the file doesn't exist.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set OK = baFileDate( "c:\data\student.dat" , "dd-mm-yy" , "hh:nn:ss" )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- OK := baFileDate( "c:\\data\\student.dat" , "dd-mm-yy" , "hh:nn:ss" )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- The date format can consist of "d" for day, "m" for month, "y" for year.
- --- RECORDSEPARATOR ---
- The time format can consist of "h" for hours, "n" for minutes, "s" for seconds. (Note
- --- RECORDSEPARATOR ---
- the "n" for minutes.)
- --- RECORDSEPARATOR ---
- A single letter ("d") returns the exact number eg "5".
- --- RECORDSEPARATOR ---
- A double letter ("dd") returns the number with a leading zero if required eg "05".
- --- RECORDSEPARATOR ---
- A triple letter ("ddd") returns the short name eg "Mon".
- --- RECORDSEPARATOR ---
- A quad letter ("dddd") returns the full name eg "Monday".
- --- RECORDSEPARATOR ---
- Any letters other than those listed above will returned as is - they can be used for
- --- RECORDSEPARATOR ---
- separators eg "dd-mm-yy" returns "05-11-97"; "d mmmm, yyyy" returns "5
- --- RECORDSEPARATOR ---
- November, 1997"
- --- RECORDSEPARATOR ---
- If the format is an empty string, then the date or time will not be returned.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- See also:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baFileDateEx
- --- RECORDSEPARATOR ---
- baFileAge
- --- RECORDSEPARATOR ---
- baFileVersion